import request from '@/utils/request'
// 导出系统访问记录
export function exportLog(params) {
  return request({
    url: '/monitor/logininfor/export',
    method: 'post',
    params
  })
}
// 解锁用户
export function unlockUser(userName) {
  return request({
    url: `/monitor/logininfor/unlock/${userName}`,
    method: 'get',
  })
}
// 获取系统访问记录
export function getLogList(params) {
  return request({
    url: '/monitor/logininfor/list',
    method: 'get',
    params
  })
}
// 批量删除系统访问记录
export function delLog(infoIds) {
  return request({
    url: `/monitor/logininfor/${Array.isArray(infoIds) ? infoIds.join(',') : infoIds}`,
    method: 'delete'
  })
}
// 清理系统访问记录
export function cleanLog() {
  return request({
    url: '/monitor/logininfor/clean',
    method: 'delete'
  })
}
